package router

import (
	"github.com/gin-gonic/gin"
	"resr_fun-api/handler/service"
)

func Router(r *gin.Engine) {
	r.POST("/sendSms", service.SendSms)            //短信发送
	r.POST("/user/register", service.RegisterUser) //用户注册
	//r.Use(middleware.Auth())
	r.POST("/user/login", service.LoginUser)           //用户登陆
	r.POST("/uploadFile", service.UploadFile)          //文件上传
	r.POST("/video/add", service.AddVideo)             //视频发布
	r.POST("/video/protobuf", service.ProtobufVideo)   //审核
	r.GET("/video/keyword", service.KeywordVideo)      //筛选
	r.GET("/video/info", service.InfoVideo)            //
	r.POST("/user/videoLog", service.AddUserVideoLog)  //
	r.POST("/user/like/add", service.AddUserLikeVideo) //添加
	r.GET("/user/like/get", service.GetUserLikeVideo)  //查看
	r.GET("/user/vip/get", service.GetUserVipList)     //查看套餐
}
